package com.yc.thread.conpro;


/**
 * 消费者实体类
 */
public class Consumer implements Runnable{

    private Info info=null;

    public Consumer(Info info){
        this.info=info;
    }

    @Override
    public synchronized void run() {
        for (int i=0;i<5;i++){
            this.info.get();
        }
    }
}
